;Assembler header file for ResEd
;written by DefMod (Dec 31 2005) on Sat Dec 31 14:07:21 2005
;Christian Ludlam, <chris@recoil.org>, 25 Apr 2005

        [       :LNOT: :DEF: ResEd_Hdr
        GBLS    ResEd_Hdr

        [       :LNOT: :DEF: Get_Types
        GBLS    Get_Types
        ]
        [       :LNOT: :DEF: Types_Hdr
Get_Types                       SETS    "GET oslib/Types.Hdr"
        |
Get_Types                       SETS    ""
        ]
        $Get_Types

        [       :LNOT: :DEF: Get_OS
        GBLS    Get_OS
        ]
        [       :LNOT: :DEF: OS_Hdr
Get_OS                          SETS    "GET oslib/OS.Hdr"
        |
Get_OS                          SETS    ""
        ]
        $Get_OS

        [       :LNOT: :DEF: Get_Wimp
        GBLS    Get_Wimp
        ]
        [       :LNOT: :DEF: Wimp_Hdr
Get_Wimp                        SETS    "GET oslib/Wimp.Hdr"
        |
Get_Wimp                        SETS    ""
        ]
        $Get_Wimp

        [       :LNOT: :DEF: Get_Toolbox
        GBLS    Get_Toolbox
        ]
        [       :LNOT: :DEF: Toolbox_Hdr
Get_Toolbox                     SETS    "GET oslib/Toolbox.Hdr"
        |
Get_Toolbox                     SETS    ""
        ]
        $Get_Toolbox

;Symbols for constants
Message_ResedObjectLoad         *       &83340
Message_ResedObjectLoaded       *       &83341
Message_ResedObjectSend         *       &83342
Message_ResedObjectSending      *       &83343
Message_ResedObjectRenamed      *       &83344
Message_ResedObjectDeleted      *       &83345
Message_ResedObjectModified     *       &83346
Message_ResedObjectClosed       *       &83347
Message_ResedSpritesChanged     *       &83348
Message_ResedObjectNameRequest  *       &83349
Message_ResedObjectName         *       &8334A
Message_ResedKeycutDetails      *       &8334B
ResEd_ForceLoad                 *       &1
ResEd_LoadFailed                *       &1
ResEd_CannotSend                *       &1
ResEd_DeleteAfterSend           *       &1
ResEd_KeycutRaisesEvent         *       &1
ResEd_KeycutShowsObject         *       &2
ResEd_KeycutShowsTransient      *       &4
ResEd_ErrorNoMemory             *       &0
ResEd_ErrorUkVersion            *       &1
ResEd_ErrorUkObject             *       &1
ResEd_ErrorCorruptData          *       &2
ResEd_ErrorNonFatalInternalError *       &3
ResEd_ErrorFatalInternalError   *       &4

;Symbols for structure offsets and sizes
ResEd_D                         *       4 ;abstract type
ResEd_O                         *       4 ;abstract type
                                ^       0
                                #       Bits
ResEd_ObjectLoadFlags           *       @

                                ^       0
                                #       Bits
ResEd_ObjectLoadedFlags         *       @

                                ^       0
                                #       Bits
ResEd_ObjectSendingFlags        *       @

                                ^       0
                                #       Bits
ResEd_ObjectSendFlags           *       @

                                ^       0
                                #       Bits
ResEd_KeycutDetailsFlags        *       @

                                ^       0
                                #       Int
ResEd_Error                     *       @

                                ^       0
ResEd_MessageObjectLoad_flags   #       ResEd_ObjectLoadFlags
ResEd_MessageObjectLoad_doc_id  #       ResEd_D
ResEd_MessageObjectLoad_obj_id  #       ResEd_O
ResEd_MessageObjectLoad_obj_class #       Toolbox_Class
ResEd_MessageObjectLoad_version #       Int
ResEd_MessageObjectLoad_address #       Ptr
ResEd_MessageObjectLoad_obj_size #       Int
ResEd_MessageObjectLoad_name    #       208*Char
ResEd_MessageObjectLoad         *       @

                                ^       0
ResEd_MessageObjectLoaded_flags #       ResEd_ObjectLoadedFlags
ResEd_MessageObjectLoaded_doc_id #       ResEd_D
ResEd_MessageObjectLoaded_obj_id #       ResEd_O
ResEd_MessageObjectLoaded_error #       ResEd_Error
ResEd_MessageObjectLoaded       *       @

                                ^       0
ResEd_MessageObjectSending_flags #       ResEd_ObjectSendingFlags
ResEd_MessageObjectSending_doc_id #       ResEd_D
ResEd_MessageObjectSending_obj_id #       ResEd_O
ResEd_MessageObjectSending_address #       Ptr
ResEd_MessageObjectSending_obj_size #       Int
ResEd_MessageObjectSending_error #       ResEd_Error
ResEd_MessageObjectSending      *       @

                                ^       0
ResEd_MessageObjectSend_flags   #       ResEd_ObjectSendFlags
ResEd_MessageObjectSend_doc_id  #       ResEd_D
ResEd_MessageObjectSend_obj_id  #       ResEd_O
ResEd_MessageObjectSend         *       @

                                ^       0
ResEd_MessageObjectRenamed_flags #       Bits
ResEd_MessageObjectRenamed_doc_id #       ResEd_D
ResEd_MessageObjectRenamed_obj_id #       ResEd_O
ResEd_MessageObjectRenamed_new_name #       224*Char
ResEd_MessageObjectRenamed      *       @

                                ^       0
ResEd_MessageObjectDeleted_flags #       Bits
ResEd_MessageObjectDeleted_doc_id #       ResEd_D
ResEd_MessageObjectDeleted_obj_id #       ResEd_O
ResEd_MessageObjectDeleted      *       @

                                ^       0
ResEd_MessageObjectModified_flags #       Bits
ResEd_MessageObjectModified_doc_id #       ResEd_D
ResEd_MessageObjectModified_obj_id #       ResEd_O
ResEd_MessageObjectModified     *       @

                                ^       0
ResEd_MessageObjectClosed_flags #       Bits
ResEd_MessageObjectClosed_doc_id #       ResEd_D
ResEd_MessageObjectClosed_obj_id #       ResEd_O
ResEd_MessageObjectClosed       *       @

                                ^       0
ResEd_MessageSpritesChanged_flags #       Bits
ResEd_MessageSpritesChanged     *       @

                                ^       0
ResEd_MessageObjectNameRequest_flags #       Bits
ResEd_MessageObjectNameRequest_doc_id #       ResEd_D
ResEd_MessageObjectNameRequest_obj_id #       ResEd_O
ResEd_MessageObjectNameRequest_window #       Wimp_W
ResEd_MessageObjectNameRequest_icon #       Wimp_I
ResEd_MessageObjectNameRequest  *       @

                                ^       0
ResEd_MessageObjectName_flags   #       Bits
ResEd_MessageObjectName_doc_id  #       ResEd_D
ResEd_MessageObjectName_obj_id  #       ResEd_O
ResEd_MessageObjectName_window  #       Wimp_W
ResEd_MessageObjectName_icon    #       Wimp_I
ResEd_MessageObjectName_obj_class #       Toolbox_Class
ResEd_MessageObjectName_name    #       212*Char
ResEd_MessageObjectName         *       @

                                ^       0
ResEd_MessageKeycutDetails_flags #       ResEd_KeycutDetailsFlags
ResEd_MessageKeycutDetails_shell #       Wimp_T
ResEd_MessageKeycutDetails_window #       Wimp_W
ResEd_MessageKeycutDetails_key  #       Wimp_KeyNo
ResEd_MessageKeycutDetails_key_action #       Toolbox_Action
ResEd_MessageKeycutDetails_names #       216*Char
ResEd_MessageKeycutDetails      *       @

                                ^       0
ResEd_FullMessageObjectLoad     Wimp_MessageHeader_MEMBERS
ResEd_FullMessageObjectLoad_flags #       ResEd_ObjectLoadFlags
ResEd_FullMessageObjectLoad_doc_id #       ResEd_D
ResEd_FullMessageObjectLoad_obj_id #       ResEd_O
ResEd_FullMessageObjectLoad_obj_class #       Toolbox_Class
ResEd_FullMessageObjectLoad_version #       Int
ResEd_FullMessageObjectLoad_address #       Ptr
ResEd_FullMessageObjectLoad_obj_size #       Int
ResEd_FullMessageObjectLoad_name #       208*Char
ResEd_FullMessageObjectLoad     *       @

                                ^       0
ResEd_FullMessageObjectLoaded   Wimp_MessageHeader_MEMBERS
ResEd_FullMessageObjectLoaded_flags #       ResEd_ObjectLoadedFlags
ResEd_FullMessageObjectLoaded_doc_id #       ResEd_D
ResEd_FullMessageObjectLoaded_obj_id #       ResEd_O
ResEd_FullMessageObjectLoaded_error #       ResEd_Error
ResEd_FullMessageObjectLoaded   *       @

                                ^       0
ResEd_FullMessageObjectSending  Wimp_MessageHeader_MEMBERS
ResEd_FullMessageObjectSending_flags #       ResEd_ObjectSendingFlags
ResEd_FullMessageObjectSending_doc_id #       ResEd_D
ResEd_FullMessageObjectSending_obj_id #       ResEd_O
ResEd_FullMessageObjectSending_address #       Ptr
ResEd_FullMessageObjectSending_obj_size #       Int
ResEd_FullMessageObjectSending_error #       ResEd_Error
ResEd_FullMessageObjectSending  *       @

                                ^       0
ResEd_FullMessageObjectSend     Wimp_MessageHeader_MEMBERS
ResEd_FullMessageObjectSend_flags #       ResEd_ObjectSendFlags
ResEd_FullMessageObjectSend_doc_id #       ResEd_D
ResEd_FullMessageObjectSend_obj_id #       ResEd_O
ResEd_FullMessageObjectSend     *       @

                                ^       0
ResEd_FullMessageObjectRenamed  Wimp_MessageHeader_MEMBERS
ResEd_FullMessageObjectRenamed_flags #       Bits
ResEd_FullMessageObjectRenamed_doc_id #       ResEd_D
ResEd_FullMessageObjectRenamed_obj_id #       ResEd_O
ResEd_FullMessageObjectRenamed_new_name #       224*Char
ResEd_FullMessageObjectRenamed  *       @

                                ^       0
ResEd_FullMessageObjectDeleted  Wimp_MessageHeader_MEMBERS
ResEd_FullMessageObjectDeleted_flags #       Bits
ResEd_FullMessageObjectDeleted_doc_id #       ResEd_D
ResEd_FullMessageObjectDeleted_obj_id #       ResEd_O
ResEd_FullMessageObjectDeleted  *       @

                                ^       0
ResEd_FullMessageObjectModified Wimp_MessageHeader_MEMBERS
ResEd_FullMessageObjectModified_flags #       Bits
ResEd_FullMessageObjectModified_doc_id #       ResEd_D
ResEd_FullMessageObjectModified_obj_id #       ResEd_O
ResEd_FullMessageObjectModified *       @

                                ^       0
ResEd_FullMessageObjectClosed   Wimp_MessageHeader_MEMBERS
ResEd_FullMessageObjectClosed_flags #       Bits
ResEd_FullMessageObjectClosed_doc_id #       ResEd_D
ResEd_FullMessageObjectClosed_obj_id #       ResEd_O
ResEd_FullMessageObjectClosed   *       @

                                ^       0
ResEd_FullMessageSpritesChanged Wimp_MessageHeader_MEMBERS
ResEd_FullMessageSpritesChanged_flags #       Bits
ResEd_FullMessageSpritesChanged *       @

                                ^       0
ResEd_FullMessageObjectNameRequest Wimp_MessageHeader_MEMBERS
ResEd_FullMessageObjectNameRequest_flags #       Bits
ResEd_FullMessageObjectNameRequest_doc_id #       ResEd_D
ResEd_FullMessageObjectNameRequest_obj_id #       ResEd_O
ResEd_FullMessageObjectNameRequest_window #       Wimp_W
ResEd_FullMessageObjectNameRequest_icon #       Wimp_I
ResEd_FullMessageObjectNameRequest *       @

                                ^       0
ResEd_FullMessageObjectName     Wimp_MessageHeader_MEMBERS
ResEd_FullMessageObjectName_flags #       Bits
ResEd_FullMessageObjectName_doc_id #       ResEd_D
ResEd_FullMessageObjectName_obj_id #       ResEd_O
ResEd_FullMessageObjectName_window #       Wimp_W
ResEd_FullMessageObjectName_icon #       Wimp_I
ResEd_FullMessageObjectName_obj_class #       Toolbox_Class
ResEd_FullMessageObjectName_name #       212*Char
ResEd_FullMessageObjectName     *       @

                                ^       0
ResEd_FullMessageKeycutDetails  Wimp_MessageHeader_MEMBERS
ResEd_FullMessageKeycutDetails_flags #       ResEd_KeycutDetailsFlags
ResEd_FullMessageKeycutDetails_shell #       Wimp_T
ResEd_FullMessageKeycutDetails_window #       Wimp_W
ResEd_FullMessageKeycutDetails_key #       Wimp_KeyNo
ResEd_FullMessageKeycutDetails_key_action #       Toolbox_Action
ResEd_FullMessageKeycutDetails_names #       216*Char
ResEd_FullMessageKeycutDetails  *       @


        ]
        END
